<?php
/**
	*****************************************************************
	* 联系QQ：290802026/1073744729									*
	* QQ  群：429403774，提供技术交流等								*
	* 版  本：V2.2.5												*
	* 开发者：RockOA研发中心/雨中磐石工作室							*
	* 邮  箱：admin@rockoa.com										*
	* 网  址：http://www.rockoa.com/								*
	* 说  明: 核心代码不要修改哦									*
	* 备  注: 未经允许不得商业出售，代码欢迎参考纠正				*
	* 修改时: 2016-01-26 22:11:34									*	
	*****************************************************************
*/
if(!isset($ajaxbool))$ajaxbool = $rock->jm->gettoken('ajaxbool', 'false');$ajaxbool= $rock->get('ajaxbool', $ajaxbool);if($ajaxbool == 'false'){include_once(''.ROOT_PATH.'/include/Smarty.php');}include_once(''.ROOT_PATH.'/include/smartyFun.php');$p= PROJECT;if(!isset($m))$m='index';if(!isset($a))$a='default';if(!isset($d))$d='';$m= $rock->get('m', $m);$a= $rock->get('a', $a);$d= $rock->get('d', $d);define('M', $m);define('A', $a);define('D', $d);define('P', $p);$_m= $m;if($rock->contain($m, '|')){$_mas = explode('|', $m);$m = $_mas[0];$_m= $_mas[1];}include_once($rock->strformat('?0/?1/?1Action.php',ROOT_PATH, $p));$rand= date('YmdHis').rand(1000,9999);if(substr($d,-1)!='/' && $d!='')$d.='/';$errormsg= '';$methodbool= true;$actpath= $rock->strformat('?0/?1/?2?3',ROOT_PATH, $p, $d, $_m);define('ACTPATH', $actpath);$actfile= $rock->strformat('?0/?1Action.php',$actpath, $m);$actfile1= $rock->strformat('?0/?1Action.php',$actpath, $_m);if(file_exists($actfile1))include_once($actfile1);if(file_exists($actfile)){include_once($actfile);$clsname= ''.$m.'ClassAction';$xhrock= new $clsname();$actname= ''.$a.'Action';if($ajaxbool == 'true')$actname= ''.$a.'Ajax';if(method_exists($xhrock, $actname)){$xhrock->beforeAction();$xhrock->$actname();}else{$methodbool = false;if($ajaxbool == 'false')echo ''.$actname.' not found';}$xhrock->afterAction();}else{echo ''.$actfile.' not found';$xhrock= new Action();}$_showbool = false;if($xhrock->display && ($ajaxbool == 'html' || $ajaxbool == 'false')){$xhrock->smartydata['p']= $p;$xhrock->smartydata['a']= $a;$xhrock->smartydata['m']= $m;$xhrock->smartydata['d']= $d;$xhrock->smartydata['rand']= $rand;$xhrock->smartydata['qom']= QOM;$xhrock->smartydata['path']= PATH;$xhrock->smartydata['sysurl']= SYSURL;$temppath= ''.ROOT_PATH.'/'.$p.'/';$tplpaths= ''.$temppath.''.$d.''.$m.'/';$tplname= 'tpl_'.$m.'';if($a!='default')$tplname  .= '_'.$a.'';$tplname   .= '.'.$xhrock->tpldom.'';$mpathname= $tplpaths.$tplname;if(!file_exists($mpathname) || !$methodbool){if(!$methodbool){$errormsg= 'in ('.$m.') not found Method('.$a.');';}else{$errormsg= ''.$mpathname.' not exists;';}echo $errormsg;}else{$_showbool = true;}}if($xhrock->display && ($ajaxbool == 'html' || $xhrock->tpltype=='html') && $_showbool){$xhrock->setHtmlData();$da = $xhrock->smartydata;include_once($mpathname);$_showbool = false;}if($xhrock->display && $ajaxbool == 'false' && $_showbool){$xhrock->setSmartyData();$smarty->template_dir = $tplpaths;$smarty->display($tplname);}